import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'font-awesome/css/font-awesome.min.css'
import router from './router'
import store from '@store'

// 注册全局接口
import install from '@assets/common/js'
import ajax from '@assets/common/js/ajax'
import jsComps from '@assets/common/js/jsComps'
Vue.use(install, { ...ajax, ...jsComps })

Vue.config.productionTip = false

Vue.use(ElementUI)

const VM = new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})

export default VM
